package com.kbp.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "node")
public class Node1 {
	
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "ID")
	private Long id;
	@Column(name="MEMBER_ID")
	private String memberId;	
	@Column(name="UPLINE")
	private String upline;
	@Column(name="LEVEL")
	private Long level;
	@Column(name="POSITION")
	private Character position = 'M';
	@Column(name="LAST_PV")
	private Integer lastpv = 0;
	@Column(name="PRESENT_PV")
	private Integer presentpv = 0;
	@Column(name="TOTAL_PV")
	private Integer totalpv = 0;
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getMemberId() {
		return memberId;
	}
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
	public String getUpline() {
		return upline;
	}
	public void setUpline(String upline) {
		this.upline = upline;
	}
	public Long getLevel() {
		return level;
	}
	public void setLevel(Long level) {
		this.level = level;
	}
	public Character getPosition() {
		return position;
	}
	public void setPosition(Character position) {
		this.position = position;
	}
	public Integer getLastpv() {
		return lastpv;
	}
	public void setLastpv(Integer lastpv) {
		this.lastpv = lastpv;
	}
	public Integer getPresentpv() {
		return presentpv;
	}
	public void setPresentpv(Integer presentpv) {
		this.presentpv = presentpv;
	}
	public Integer getTotalpv() {
		return totalpv;
	}
	public void setTotalpv(Integer totalpv) {
		this.totalpv = totalpv;
	}	
}